<template>
  <div>
    <UserMb>
      <template slot="title">
        <div class="OrderInfoHBox flex f-s">
          <span class="OrderInfoHText OrderInfoHText1">订单编号：</span>
          <span class="OrderInfoHText OrderInfoHText2">{{ yuan.ddh }}</span>
          <span class="OrderInfoHText OrderInfoHText3">订单状态：</span>
          <span class="OrderInfoHText OrderInfoHText4">{{ yuan.state.text }}</span>
          <div class="OrderInfoHbtnsBox flex f-e">
            <template v-for="(v, k) in yuan.czArr">
              <div class="OrderInfoHbtn flex" :key="k + 'OrderInfoHbtn'" v-if="k != 0">
                {{ v }}
              </div>
            </template>
          </div>
        </div>
      </template>
      <template slot="content">
        <div class="OrderInfoCBox">
          <div class="OrderInfoCTabBox OrderInfoCTab1Box">
            <div
              class="OrderInfoCTabHBox flex f-s"
              v-for="(v, k) in yuan.zfInfo"
              :key="k + 'zfInfo'"
            >
              <span class="OrderInfoCTabHText1">{{ k }}</span>
              <span class="OrderInfoCTabHText2">{{ v }}</span>
            </div>
          </div>
          <div class="OrderInfoCHBox flex f-s">收货人信息</div>
          <div class="OrderInfoCTabBox OrderInfoCTab2Box">
            <div
              class="OrderInfoCTabHBox flex f-s"
              v-for="(v, k) in yuan.shrInfo"
              :key="k + 'shrInfo'"
            >
              <span class="OrderInfoCTabHText1">{{ k }}</span>
              <span class="OrderInfoCTabHText2">{{ v }}</span>
            </div>
          </div>
          <div class="OrderInfoCHBox flex f-s">物流信息</div>
          <div class="OrderInfoCTabBox OrderInfoCTab2Box">
            <div
              class="OrderInfoCTabHBox flex f-s"
              v-for="(v, k) in yuan.wlInfo"
              :key="k + 'wlInfo'"
            >
              <span class="OrderInfoCTabHText1">{{ k }}</span>
              <span class="OrderInfoCTabHText2">{{ v }}</span>
            </div>
          </div>
          <div class="OrderInfoCSpListBox">
            <div class="OrderInfoCSpListHBox flex f-s">
              <span class="OrderInfoCSpListHText OrderInfoCSpListHText1">爱果果水果店</span>
              <span class="OrderInfoCSpListHText OrderInfoCSpListHText2">规格</span>
              <span class="OrderInfoCSpListHText OrderInfoCSpListHText3">单价</span>
              <span class="OrderInfoCSpListHText OrderInfoCSpListHText4">数量</span>
              <span class="OrderInfoCSpListHText OrderInfoCSpListHText5">金额</span>
            </div>
            <div class="OrderInfoCSpListTrBox flex f-s" v-for="(v,k) in yuan.spArr" :key="k+'OrderInfoCSpListTrBox'">
              <div class="OrderInfoCSpListTrSpImgBox flex">
                <img :src="v.imgUrl" alt="">
              </div>
              <div class="OrderInfoCSpListTrSpName flex f-s">{{v.name}}</div>
              <div class="OrderInfoCSpListTrSpSs flex ">{{v.ss}}</div>
              <div class="OrderInfoCSpListTrSpDj flex ">{{v.dj}}</div>
              <div class="OrderInfoCSpListTrSpNum flex">{{v.num}}</div>
              <div class="OrderInfoCSpListTrSpZj flex">{{yuan.tjf}} {{v.dj*v.num}}</div>
            </div>
          </div>
        </div>
        <div class="OrderInfoBtmBox">
          <div class="OrderInfoBtmZjBox flex f-e ai-fe">
            <div class="OrderInfoBtmText1">实付金额：</div>
            <div class="OrderInfoBtmText2">{{yuan.tjf}} {{yuan.zj}}</div>
          </div>
          <div class="OrderInfoBtmBtnsBox flex f-e">
            <template v-for="(v, k) in yuan.czArr">
              <div class="OrderInfoBtmBtns flex" :key="k + 'OrderInfoBtmBtns'" v-if="k != 0">
                {{ v }}
              </div>
            </template>
          </div>
        </div>
      </template>
    </UserMb>
  </div>
</template>

<script>
import UserMb from "../../gj/UserMb";
export default {
  name: "MyJfDdInfo",
  mounted() {
    console.log(JSON.parse(this.$route.query.yuan));
  },
  data() {
    return {
      yuan: JSON.parse(this.$route.query.yuan),
    };
  },
  components: {
    UserMb,
  },
};
</script>

<style scoped>
* {
  font-size: 0;
  color: #333333;
}
.f-s {
  justify-content: flex-start;
}
.f-e {
  justify-content: flex-end;
}
.fd-c {
  flex-direction: column;
}
.ai-fs {
  align-items: flex-start;
}
.ai-fe {
  align-items: flex-end;
}
.f18 {
  font-size: 18px;
}
.f16 {
  font-size: 16px;
}
.f14 {
  font-size: 14px;
}
.f16 {
  font-size: 16px;
}
.c3 {
  color: #333333;
}
.c6 {
  color: #666666;
}
.c9 {
  color: #999999;
}
.c25 {
  color: #252525;
}
.c2a {
  color: #2a2a2a;
}
</style>

<style scoped>
/* 头部 */
.OrderInfoHBox {
  text-indent: 0;
}
.OrderInfoHText {
  font-size: 13.5px;
  color: #333333;
}
.OrderInfoHText1 {
  width: 90px;
  margin-left: 20px;
}
.OrderInfoHText2 {
  width: 235px;
  margin-right: 139px;
}
.OrderInfoHText3 {
  width: 90px;
}
.OrderInfoHText4 {
  width: 115px;
  color: #f08200;
}
.OrderInfoHbtnsBox {
  width: 397px;
}
.OrderInfoHbtn {
  width: 90px;
  height: 30px;
  font-size: 10.5px;
  color: #ffffff;
  background-color: #498e3d;
  border-radius: 5px;
  cursor: pointer;
}
.OrderInfoHbtn {
  margin: 0 20px;
}
/* 正文 */
.OrderInfoCBox {
  width: 1046px;
  margin: 20px 0 41px 20px;
}
.OrderInfoCTabBox {
  width: 1044px;
  border: 1px solid #e9e9e9;
  background-color: #f9f9f9;
}
.OrderInfoCTabHBox {
  height: 36px;
  padding-left: 20px;
}
.OrderInfoCTabHBox:nth-of-type(1) {
  margin-top: 9px;
}
.OrderInfoCTabHBox:nth-last-of-type(1) {
  margin-bottom: 9px;
}
.OrderInfoCTabHText1 {
  width: 127px;
  line-height: 36px;
  font-size: 12px;
  color: #666666;
}
.OrderInfoCTabHText2 {
  line-height: 36px;
  font-size: 12px;
  color: #666666;
}
.OrderInfoCHBox {
  height: 55px;
  font-size: 12px;
  color: #498e3d;
  text-indent: 11px;
}
.OrderInfoCSpListBox{
  width: 100%;
  margin-top: 20px;
}
.OrderInfoCSpListHBox{
  height: 46px;
  padding-left: 20px;
  border: 1px solid #e9e9e9;
  border-bottom: none;
  background-color: #f2f2f2;
}
.OrderInfoCSpListHText{
    font-size: 12px;
    color: #333333;
}
.OrderInfoCSpListHText1{
  width: 300px;
  margin-right: 115px;
}
.OrderInfoCSpListHText2{
  width: 115px;
  margin-right: 65px;
}
.OrderInfoCSpListHText3{
  width: 115px;
  margin-right: 65px;
}
.OrderInfoCSpListHText4{
  width: 115px;
  margin-right: 64px;
}
.OrderInfoCSpListTrBox{
  height: 120px;
  border: 1px solid #e9e9e9;
  border-top: none;
}
.OrderInfoCSpListTrSpImgBox{
  width: 78px;
  height: 78px;
  margin-left: 20px;
  border: 1px solid #e9e9e9;
}
.OrderInfoCSpListTrSpName{
  width: 200px;
  font-size: 10.5px;
  color: #666666;
  margin-left: 20px;
  margin-right: 69px;
}
.OrderInfoCSpListTrSpSs{
  width: 120px;
  font-size: 10.5px;
  color: #999999;
  margin-right: 73px;
}
.OrderInfoCSpListTrSpDj{
  width: 90px;
  font-size: 10.5px;
  color: #999999;
  margin-right: 116px;
}
.OrderInfoCSpListTrSpNum{
  width: 35px;
  font-size: 12px;
  color: #666666;
  margin-right: 120px;
}
.OrderInfoCSpListTrSpZj{
  width: 90px;
  font-size: 10.5px;
  color: #333333;
}
/* 底部总价 */
.OrderInfoBtmZjBox{
  height: 18px;
  margin: 0 20px 43px 20px;
}
.OrderInfoBtmText1{
  font-size: 10.5px;
  color: #666666;
}
.OrderInfoBtmText2{
  font-size: 18px;
  color: #ff5757;
}
/* 底部按钮 */
.OrderInfoBtmBtnsBox{
  height: 50px;
  margin: 0 0 40px 0;
}
.OrderInfoBtmBtns{
  width: 150px;
  height: 40px;
  font-size: 15px;
  color: #ffffff;
  margin: 0 20px;
  background-color: #f08200;
  border-radius: 5px;
  cursor: pointer;
}
.OrderInfoBtmBtnsK{
  background-color: #999999;
}
</style>
